﻿using BLL;
using IBLL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 考试管理系统
{
 
    public partial class Score : Form
    {
        IFrExamManage_IBLL frExam = new FrExamManage_BLL();
        public Score(string id)
        {
            InitializeComponent();
           uiDataGridView1.DataSource= frExam.SubMit_info($"select  考号= Examinee_Score.StudentId,姓名= Examinee_info.StudentName ,总分=(SingleChoice+MultipleChoice+TrueOrFalseQuestions+Completion) from Examinee_Score inner join Examinee_info on Examinee_info.StudentId=Examinee_Score.StudentId where Exam_id='{id}'; ").Tables[0];
        }
    }
}
